package com.mq.mqtest.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author peng.li
 * @date 2021/6/14 18:36
 */
@Data
public class User implements Serializable {
private Long id;
private String name;
private String sex;

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", name='" + name + '\'' + ", sex='" + sex + '\'' + '}';
    }

    public User() {
    }

    public User(Long id, String name, String sex) {
        this.id = id;
        this.name = name;
        this.sex = sex;
    }
}
